Ext.define("SHApp.System.MetaData.Form", {
    extend: "BLBTSystem.Form",
    submitUrl: "api/metadata?format=json",
    winWidth: 360,
    winHeight: 185,
    layout: { type: "vbox", align: "stretch" },
    initComponent: function () {
        Ext.apply(this);
        this.createItems();
        this.callParent(arguments);
    },
    createItems: function () {
        this.items = [
        {
            xtype: "textfield",
            fieldLabel: "ID",
            name: "Id",
            hidden: true
        }, {
            fieldLabel: "<span style='color:red'>*</span>功能名称",
            xtype: "textfield",
            name: "FText",
            maxLength: 50,
            allowBlank: false,
            blankText: "功能名称不能为空！"
        }, {
            fieldLabel: "<span style='color:red'>*</span>序号",
            xtype: "numberfield",
            name: "FOrder",
            maxLength: 9,
            allowBlank: false,
            blankText: "序号不能为空！",
            hidden: true
        }, {
            fieldLabel: "<span style='color:red'>*</span>权限值",
            xtype: "numberfield",
            name: "FValue",
            maxLength: 9,
            enforceMaxLength: true,
            allowBlank: false,
            blankText: "权限值不能为空！"
        }
	];
    }
})